package com.aube.mis.vo;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

public class DataTableCriterias {
	private int draw;
	private int start; // 起始下标
	private int startPage; // 起始页码，从0开始
	private int length; // 每页长度
	private Map<SearchCriterias, String> search;

	private List<Map<ColumnCriterias, String>> columns;

	private List<Map<OrderCriterias, String>> order;

	public DataTableCriterias() {
		
	}

	public DataTableCriterias(int startPage, int length) {
		this.startPage = startPage;
		this.length = length;
	}
	
	
	public int getDraw() {
		return draw;
	}

	public void setDraw(int draw) {
		this.draw = draw;
	}

	public int getStart() {
		return start;
	}

	public void setStart(int start) {
		this.start = start;
	}

	public int getStartPage() {
		return startPage;
	}

	public void setStartPage(int startPage) {
		this.startPage = startPage;
	}

	public int getLength() {
		return length;
	}

	public void setLength(int length) {
		this.length = length;
	}

	public Map<SearchCriterias, String> getSearch() {
		return search;
	}

	public void setSearch(Map<SearchCriterias, String> search) {
		this.search = search;
	}

	public List<Map<ColumnCriterias, String>> getColumns() {
		return columns;
	}

	public void setColumns(List<Map<ColumnCriterias, String>> columns) {
		this.columns = columns;
	}

	public List<Map<OrderCriterias, String>> getOrder() {
		return order;
	}

	public void setOrder(List<Map<OrderCriterias, String>> order) {
		this.order = order;
	}

	public enum SearchCriterias {
		value, regex
	}

	public enum OrderCriterias {
		column, dir
	}

	public enum ColumnCriterias {
		data, name, searchable, orderable, searchValue, searchRegex
	}
}
